<?php
/**
 * xysc users Version1.0
 * ==================================
 * Copy 2016-2017
 * Web:www.xjh7.com
 * ==================================
 * Author:lj
 * Date:2016-2-19
*/

	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>轩辕商城-后台登录</title>
<link rel="stylesheet" type="text/css" href="<?php echo backweb_CSS_URL;?>admin_login.css" />
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>jquery.js"></script>
<script type="text/javascript" src="<?php echo backweb_JS_URL;?>admin.js"></script>
</head>
<script>
	$(function (){
		$("#code").blur(function (){
			var code = $("#code").val();
			$.ajax({
				url:'./index.php?r=backweb/manager/login',
				type:'post',
				data:{code:'mycode',C:code},
				dataType:'json',
				success:function (data){
					alert("验证码错误");
					return false;
				}
			});
		});
	})
</script>
<body>
	<div id="header"><a href="../index.php"><img src="<?php echo backweb_IMG_URL;?>xy2.png" /></a></div>
		<div id="content">
			<h2>欢迎管理员进入！</h2>
			<?php $form = $this->beginWidget('CActiveForm',array("id"=>"admin")); ?>
			<fieldset>
				<legend>后台登陆</legend>
				<label><?php echo $form -> label($manager_model,'username'); ?><?php echo $form->textField($manager_model,'username',array("class"=>"text","id"=>"username")); ?><?php echo $form->error($manager_model,'username');?></label>
				<label><?php echo $form -> label($manager_model,'password'); ?><?php echo $form->passwordField($manager_model,'password',array("class"=>"text")); ?><?php echo $form->error($manager_model,'password');?></label>
				<label>验证码：</label><label><input type="text" name="code" class="text code"  id="code" /></label>
				<label>输入下图的字符，不区分大小写</label>
				<label><img src="./index.php?r=user/VerifyCode"  onclick="this.src='./index.php?r=user/VerifyCode&v='+Math.random();"/></label>
				<input type="submit" value="登陆" class="submit" name="send"  id="send"   />
				<p>作者：xjh&lj 版权所有 翻版必究 @2016</p>
			</fieldset>
			<?php $this->endWidget(); ?>
		</div>
		<div id="resText"></div>
</body>
</html>